<%@ page import="java.util.Timer" %>
<%@ page import="java.util.TimerTask" %><%--
  Created by IntelliJ IDEA.
  User: 莫伟杰
  Date: 2019/7/17
  Time: 14:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script src="/js/jquery-3.2.1.min.js"></script>
    <title>注销成功</title>
</head>
<body style="text-align: center">
<img src="/img/OK.png"/>
<h2>您已成功注销</h2>
<hr>
<h4 id="time">浏览器将在3秒后自动跳转至主页。</h4>
<p>如果您的浏览器没有自动跳转，请<a href="/">点击这里</a>。</p >
<script>
    var i = 3;//倒数时间
    var timer = setInterval(function () {
        Timer();
    },1000);
    function Timer() {
        i--;
        document.getElementById("time").innerHTML="浏览器将在"+i+"秒后自动跳转至主页。";
        if(i===0)
        {
            location.href="/";
            clearInterval(timer);
        }
    }
</script>
</body>
</html>